package com.xbmu.service;

import org.apache.commons.dbutils.QueryRunner;
import org.apache.commons.dbutils.handlers.BeanHandler;

import com.sure.util.Utils;
import com.xbmu.bean.UpdUser;
import com.xbmu.bean.User;

public class UpdUserService {
	public void updUser(UpdUser updUser) {
		QueryRunner runner = new QueryRunner(Utils.getDataSource());
		try {
			String sql = "UPDATE boss set user_name=?,user_pass=?,user_job=? WHERE id=?";
			runner.update(sql,updUser.getUser_name(),updUser.getUser_pass(),updUser.getUser_job(),updUser.getId());
			
		} catch (Exception e) {
			System.out.println(e);
		}
	}
}
